<!DOCTYPE html>
<html>

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title></title>
  <meta name="keywords" content="统一地图平台api">
  <meta name="description" content="统一地图平台api">
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  <link href="./../script/api.css" rel="stylesheet">
</head>

<body class="restdemo-page">
  <div class="page_wrapper">
    <div data-tpl="" class="content-sidebar has_right">
      <div class="content">
        <div class="crumbs">
          您现在的位置：
          <a>开发</a>
          &gt;
          <a>资源搜索</a>
          &gt;
          <a>智能搜索提示</a></div>
        <article>
          <h1 class="title">
            智能搜索提示
            <span class="update-time">最后更新时间: 2020年10月21日</span>
          </h1>
          <div>
            <div class="md-container">
              <h2>调用示例</h2>
              <!-- <p>第一步、导入资源文件</p> -->
              <div class="md-demo-code-wrapper">
                <div class="md-demo-code-header"><a class="active">url</a></div>
                <div class="md-demo-code-content">
                  <div class="md-demo-code-content-item active">
                    <pre><code class="html hljs xml">
  http://${IP:PORT}/api/v1/search/suggest?keywords=modeng&city=440100&page_size=5&location=113.388651%2C23.172524&show_type_brand=false
                                        </code></pre>
                  </div>
                </div>
              </div>

              <p>参数说明:</p>
              <div class="md-atomic">
                <div class="table-container" style="width:100%;">
                  <table class="md-table">
                    <thead>
                      <tr>
                        <th><p>名称</p></th><th><p>格式</p></th><th><p>是否必要</p></th><th><p>值说明</p></th>
                      </tr>
                    </thead>
                    <tbody>
                      <tr>
                        <td><p>token</p></td><td><p>任意文本</p></td><td><p>是</p></td><td><p>token</p></td>
                      </tr>
                      <tr>
                        <td><p>keywords</p></td><td><p>任意文本</p></td><td><p>是</p></td><td><p>待查询关键词</p></td>
                      </tr>
                      <tr>
                        <td><p>city</p></td><td><p>6位数字</p></td><td><p>否</p></td><td><p>市/区级行政编号，若不传，将通过location参数定位</p></td>
                      </tr>
                      <tr>
                        <td><p>location</p></td><td><p>逗号分隔的经纬度</p></td><td><p>否</p></td><td><p>用户定位的经纬度，若不传，则搜索提示不计算距离</p></td>
                      </tr>
                      <tr>
                        <td><p>page_size</p></td><td><p>数字，不大于30</p></td><td><p>否</p></td><td><p>输入提示最大数量，默认10</p></td>
                      </tr>
                      <tr>
                        <td><p>show_type_brand</p></td><td><p>true/false</p></td><td><p>否</p></td><td><p>是否提示品牌、类别，默认不提示</p></td>
                      </tr>
                    </tbody>
                  </table>
                </div>
              </div>

              <h2>返回示例</h2>

              <div class="md-demo-code-wrapper">
                <div class="md-demo-code-header"><a class="active">json</a></div>
                <div class="md-demo-code-content">
                  <div class="md-demo-code-content-item active">
                    <pre><code class="html hljs xml">
  {
    "errcode": 0,
    "errmsg": "ok",
    "total": 5,
    "list": [
      {
        "address": "大同二横路26号",
        "province": "海南省",
        "city": "海口市",
        "district": "龙华区",
        "children": null,
        "location": "110.33381437,20.038081212",
        "showLocation": "110.33381437,20.038081212",
        "name": "个性·摩登",
        "id": "3700000085219",
        "searchType": "normal",
        "standbyTypeCode": "210205",
        "standbyTypeName": "美容/美体",
        "type": null,
        "isSearch": false,
        "source": 2,
        "adcode": 460106
      }
    ]
  }
                                        </code></pre>
                  </div>
                </div>
              </div>
              <p>属性说明:</p>
              <div class="md-atomic">
                <div class="table-container" style="width:100%;">
                  <table class="md-table">
                    <tbody>
                      <tr><th><p>属性名称</p></th><th><p>属性说明</p></th></tr>
                      <tr><td><p>total</p></td><td><p>输入提示数量</p></td></tr>
                      <tr><td><p>list[].address</p></td><td><p>地址</p></td></tr>
                      <tr><td><p>list[].province</p></td><td><p>省</p></td></tr>
                      <tr><td><p>list[].city</p></td><td><p>市</p></td></tr>
                      <tr><td><p>list[].district</p></td><td><p>区</p></td></tr>
                      <tr><td><p>list[].children</p></td><td><p>子POI</p></td></tr>
                      <tr><td><p>list[].location</p></td><td><p>导航经纬度</p></td></tr>
                      <tr><td><p>list[].showLocation</p></td><td><p>显示经纬度</p></td></tr>
                      <tr><td><p>list[].searchType</p></td><td><p>固定为normal</p></td></tr>
                      <tr><td><p>list[].standbyTypeCode</p></td><td><p>类别代码</p></td></tr>
                      <tr><td><p>list[].standbyTypeName</p></td><td><p>类别名称</p></td></tr>
                      <tr><td><p>list[].source</p></td><td><p>数据源。1=>外部POI数据，2=>互联网POI数据，3=>南网自有数据，4=>结构化地址，5=>电网资源。</p></td></tr>
                      <tr><td><p>list[].adcode</p></td><td><p>区级行政区划编码</p></td></tr>
                      <tr><td><p>list[].isSearch</p></td><td><p>是否搜索词。若是，用户点击后应用name属性进一步搜索。只有show_type_brand为true时才会出现isSearch为true的情况</p></td></tr>
                    </tbody>
                  </table>
                </div>
              </div>
            </div>
          </div>
        </article>
      </div>
    </div>
  </div>
</body>

</html>